#! /bin/sh
. "${0%/*}/test.subr"

set_up_package "hg-checkout_date.mk"
set_up_repository hg

step "Testing Mercurial with CHECKOUT_DATE"
CHECKOUT_DATE="2018-02-01" package_make patch

assert_that --file "$wrkdir/pkgbase/today" --has-content "2018-01-01"
